﻿<Window x:Class="WPF_Example3.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Hóa Đơn Bán Hàng" Height="350" Width="525">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <ToolBarTray Grid.Row="0">
            <ToolBar Band="1" BandIndex="1">
                <Button Name="mnNew" ToolTip="New">
                    <StackPanel Orientation="Horizontal">
                        <Image HorizontalAlignment="Right" Source="D:\OOP\CSharp_C++_LE THI NGOC TUYET\WPF_Example3\Images\NewDocumentHS.png"/>
                        <TextBlock VerticalAlignment="Center">Thêm mới</TextBlock>
                    </StackPanel>
                </Button>
                <Button ToolTip="Repair">
                    <StackPanel Orientation="Horizontal">
                        <Image Width="16" Height="16" Source="D:\OOP\CSharp_C++_LE THI NGOC TUYET\WPF_Example3\Images\Properties.png"/>
                        <TextBlock VerticalAlignment="Center">Sửa</TextBlock>
                    </StackPanel>
                </Button>
                <Button ToolTip="Delete">
                    <StackPanel Orientation="Horizontal">
                        <Image Width="16" Height="16" Source="D:\OOP\CSharp_C++_LE THI NGOC TUYET\WPF_Example3\Images\DeleteHS.png"/>
                        <TextBlock VerticalAlignment="Center">Xóa</TextBlock>
                    </StackPanel>
                </Button>
                <Button ToolTip="Search">
                    <StackPanel Orientation="Horizontal">
                        <Image Width="16" Height="16" Source="D:\OOP\CSharp_C++_LE THI NGOC TUYET\WPF_Example3\Images\Find_vs.png"/>
                        <TextBlock VerticalAlignment="Center">Tìm kiếm</TextBlock>
                    </StackPanel>
                </Button>
                <Button ToolTip="Print">
                    <StackPanel Orientation="Horizontal">
                        <Image Width="16" Height="16" Source="D:\OOP\CSharp_C++_LE THI NGOC TUYET\WPF_Example3\Images\PrintHS.png"/>
                        <TextBlock VerticalAlignment="Center">In</TextBlock>
                    </StackPanel>
                </Button>
                <Button ToolTip="Close" Name="btClose">
                    <StackPanel Orientation="Horizontal">
                        <Image Width="16" Height="16" Source="D:\OOP\CSharp_C++_LE THI NGOC TUYET\WPF_Example3\Images\StopHS.png"/>
                        <TextBlock VerticalAlignment="Center">Thoát</TextBlock>
                    </StackPanel>
                </Button>
            </ToolBar>
        </ToolBarTray>
        <DataGrid Name="datagrid" Grid.Row="1" AutoGenerateColumns="False">
            <DataGrid.Columns>
                <DataGridTextColumn Header="Số hóa đơn" Width="100">
                </DataGridTextColumn>
                <DataGridTextColumn Header="Tên hàng" Width="Auto">
                </DataGridTextColumn>
                <DataGridTextColumn Header="Số lượng" Width="Auto">
                </DataGridTextColumn>
                <DataGridTextColumn Header="Đơn giá" Width="100">
                </DataGridTextColumn>
                <DataGridTextColumn Header="Trị giá" Width="100">
                </DataGridTextColumn>
                <DataGridTextColumn Header="Khuyến mãi" Width="100">
                </DataGridTextColumn>
                <DataGridTextColumn Header="Diễn giải" Width="*">
                </DataGridTextColumn>
            </DataGrid.Columns>
        </DataGrid>
        <StatusBar Grid.Row="2">
            <StatusBarItem Name="sbiSohd" Content="Tổng số hóa đơn: 05"/>
        </StatusBar>
    </Grid>
</Window>
